import request from '@/utils/request';

// 获取作业列表
export function getHomeworkListService() {
  return request({
    url: '/homework/list',
    method: 'get'
  });
}

// 获取作业详情
export function getHomeworkDetailService(homeworkId) {
  return request({
    url: `/homework/detail/${homeworkId}`,
    method: 'get'
  });
}

// 添加新作业
export function addHomeworkService(data) {
  return request({
    url: '/homework/add',
    method: 'post',
    data
  });
} 